﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
using Microsoft.Xna.Framework.Content;

namespace Programonica.Igramonica.Graphics
{
    public class Level
    {
        #region Поля

        private ContentManager content;

        private GraphicsDevice graphicsDevice;

        #endregion

        //---------------------------------------------------------------------------

        #region Свойства

        protected ContentManager Content
        {
            get { return content; }
        }

        protected GraphicsDevice GraphicsDevice
        {
            get { return graphicsDevice; }
        }

        #endregion

        //---------------------------------------------------------------------------

        #region Инициализация

        public Level(ContentManager content, GraphicsDevice graphicsDevice)
        {
            this.content = content;
            
            this.graphicsDevice = graphicsDevice;
        }

        #endregion

        //---------------------------------------------------------------------------

        #region Открытые методы

        public virtual void LoadLevel(String fileName)
        {
            LevelLoader levelLoader = new LevelLoader(content);

            levelLoader.Load(fileName);
        }

        #endregion
    }
}